package com.etcn.modules.busi.member.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import com.etcn.common.controller.BaseController;
import com.etcn.common.pojo.FileUploadVo;
import com.etcn.modules.busi.member.pojo.WmFeedback;
import com.etcn.modules.busi.member.service.IWmFeedbackService;

import org.springframework.web.bind.annotation.ResponseBody;
import com.etcn.common.annotation.Manage;

/**
 * 反馈controller
 * @author guozc
 * @date: 2018-03-22 10:34:44
 */
@Controller
@RequestMapping("/v1/feedbacks")
public class WmFeedbackController extends BaseController {

	@Autowired
    private IWmFeedbackService wmFeedbackService;

     /**
     * 根据id查询反馈
     */
    @Manage
    @RequestMapping(value = "add", method = RequestMethod.POST)
    public @ResponseBody void getById(@ModelAttribute WmFeedback wmFeedback) throws Exception{
    	wmFeedbackService.add(wmFeedback);
    }
    
}